//引入封装的公共的请求插件
import { GET, POST, UPLOAD } from "../../services/request";

export default {
  initType(data = {}) {
    return GET({
      url: "/product/base/ptype",
      params: data,
    });
  },
  initSwiper(data={}){
    return GET({
      url:"/product/base/initSwiper",
      params:data
    })
  },
  initProducts(data={}){
      return POST({
          url:"/product/base/initproducts",
          params:data
      })
  },
  query(data={}){
    return GET({
      url:"/product/base/query",
      params:data
    })
  },
  search(data ={}){
    return GET({
      url:"/product/base/search",
      params:data
    })
  },
  searchByType(data ={}){
    return GET({
      url:"/product/base/searchByType",
      params:data
    })
  },

};
